Technical Q&A QA1056
Saving the current Core Graphics Path


Q: Does CGContextSaveGState save the current path?

A: No. Core Graphics follows the PDF specification in this regard. CGContextSaveGState and CGContextRestoreGState do not save and restore the path. In order to redraw a path you must recreate it from scratch.


[Oct 02 2001]


Developer Documentation | Technical Notes | Development Kits | Sample Code